package com.buaa.aiguangxi.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class StatisticsDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    public List<Map<String,Object>> findStatisticsBySceneId(String sceneId){
        return jdbcTemplate.queryForList("select * from statistics where sceneId=?",sceneId);
    }
}
